html, body, div, span, h1, h2, h3, h4, h5, h6,
p, em, small, strong, dl, dt, dd, ol, ul, li{
  margin: 0;
  padding: 0;
}
*{
    font: 12px "microsoft yahei";
}
em, strong, i {
  font-style: normal;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}
body {
  font-family: "Microsoft Yahei";
}
ul, ol {
  list-style: none;
}
a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}
img{
    display: block;
}
.clearfloat:after{
    content: "";
    display: block;
    visibility: hidden;
    clear: both;
}
.w1300 {
    width: 1300px;
    margin: 0 auto;
}
input::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: #CCCCCC;
}
input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color: #CCCCCC;
}
input::-moz-placeholder { /* Mozilla Firefox 19+ */
   color: #CCCCCC;
}
input:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #CCCCCC;
}
.main {
    width: 500px;
    height: 800px;
    /* border: 1px solid red; */
    margin: 0 auto;
}

.game_title {
    width: 170px;
    height: 60px;
    /* border: 1px solid red; */
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 60px;
    font-size: 60px;
    color: #fff;
    position: relative;
    font-weight: bold;
    letter-spacing: 8px;
}

.new_game {
    width: 150px;
    height: 60px;
    /* border: 1px solid red; */
    margin: 0 auto;
    margin-top: 10px;
    text-align: center;
    line-height: 60px;
    position: relative;
}

.new_game>a {
    width: 100px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background-color: rgba(140, 122, 104, 0.6);
    color: #ffffff;
    font-size: 16px;
    line-height: 40px;
}

.try_again {
    width: 275px;
    height: 60px;
    /* border: 1px solid red; */
    line-height: 60px;
    position: absolute;
    top: 0;
    left: -62.5px;
}

.try_again a {
    width: 100px;
    height: 40px;
    border: none;
    border-radius: 10px;
    /* border: 1px solid red; */
    background-color: rgba(140, 122, 104, 0.6);
    color: #ffffff;
    font-size: 16px;
    line-height: 40px;
}

#try_again_a {
    margin-right: 12.5px;
}

#pause_a {
    margin-left: 12.5px;
}

.score {
    width: 150px;
    height: 40px;
    /* border: 1px solid red; */
    margin: 0 auto;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    color: #fff;
    position: relative;
}

.score span {
    font-size: 16px;
}

.diamonds_container {
    width: 500px;
    height: 500px;
    margin: 0 auto;
    margin-top: 20px;
    background-color: rgba(185, 173, 161, 0.5);
    border-radius: 15px;
    position: relative;
}

.diamonds {
    width: 100px;
    height: 100px;
    margin: 20px 0 0 20px;
    border-radius: 10px;
    background-color: #CAC0B4;
    float: left;
    color: #ffffff;
    text-align: center;
    line-height: 100px;
    font-size: 50px;
}

.n2 {
    background-color: #eee3da
}

.n4 {
    background-color: #efe0c8
}

.n8 {
    background-color: #f26179
}

.n16 {
    background-color: #f59563
}

.n32 {
    background-color: #f67c5f
}

.n64 {
    background-color: #f65e36
}

.n128 {
    background-color: #edcf72
}

.n256 {
    background-color: #edcc61
}

.n512 {
    background-color: #9c0
}

.n1024 {
    background-color: #3365a5
}

.n2048 {
    background-color: #09c
}

.n4096 {
    background-color: #a6c
}

.n8192 {
    background-color: #93c
}

.n2,
.n4 {
    color: #636e65;
}

.n1024,
.n2048,
.n4096,
.n8192 {
    font-size: 40px
}

.diamonds_container_game_over {
    width: 500px;
    height: 500px;
    position: absolute;
    top: 0;
    /* border: 1px solid red; */
    background-color: rgba(0, 0, 0, 0.5);
    /* opacity: 0.5; */
    border-radius: 15px;
    display: none;
}

.game_over {
    width: 350px;
    height: 170px;
    /* border: 1px solid red; */
    text-align: center;
    line-height: 100px;
    margin: 0 auto;
    margin-top: 100px;
    border-radius: 10px;
    background-color: #000000;
    color: #fff;
    font-size: 50px;
}

.game_over p,
.game_over span {
    font-size: 30px;
}

.game_pauce {
    width: 500px;
    height: 500px;
    position: absolute;
    top: 0;
    /* border: 1px solid red; */
    background-color: rgba(0, 0, 0, 0.5);
    /* opacity: 0.5; */
    border-radius: 15px;
}

.game_pause_w {
    width: 200px;
    height: 100px;
    /* border: 1px solid red; */
    text-align: center;
    line-height: 100px;
    margin: 0 auto;
    margin-top: 200px;
    border-radius: 10px;
    background-color: #000000;
    color: #fff;
    font-size: 40px;
}